package com.txy.alth.greedy;

// 物品
public class Goods {
    String name;
    double weight;
    double price; // 价格
    double value; // 价值 单价

    public Goods(String name, double weight, double price) {
        this.name = name;
        this.weight = weight;
        this.price = price;
        this.value = price/weight;
    }
}
